package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tbAccountStatement", description="支付实体类")
@TableName(value = "tb_account_statement")
public class TbAccountStatement implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @ApiModelProperty(value = "客户编号）")
    @TableField(value = "client_id")
    private Integer clientId;

    @ApiModelProperty(value = "流水类型（字典表 支付1，充值2）")
    @TableField(value = "type_id")
    private Integer typeId;

    @ApiModelProperty(value = "添加时间")
    @TableField(value = "addtime")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime addtime;

    @ApiModelProperty(value = "  数量")
    @TableField(value = "amount")
    private Double amount;

    @ApiModelProperty(value = "现金，信用卡，银行卡，微信，支付宝等")
    @TableField(value = "pay_id")
    private BigDecimal payId;


}
